<template>
  <div>
    <h3>这是加以后count的值:{{ count }}</h3>
    <button @click="add">+1</button>
    <button @click="addasync">+1async</button>
  </div>
</template>
<script>
import { mapState, mapMutations, mapActions } from 'vuex'
export default {
  data () {
    return {
    }
  },
  created () {
  },
  computed: {
    ...mapState(['count'])
  },
  methods: {
    ...mapMutations(['add']),
    ...mapActions(['addasync'])
  }
}
</script>

<style scoped lang="scss">
</style>
